package cn.tramy.pinxian.wind.handler.dispatch

import cn.tramy.pinxian.wind.handler.dispatch.interceptor.DispatchInterceptor

interface CommonDispatcher {
    val GROUP_NAME_DEFAULT: String
        get() = "default"

    fun groupName(): String

    fun dispatch(message: Any)

    fun addInterceptor(vararg interceptors: DispatchInterceptor)
//
//    fun beforeDispatch() {}
//    fun afterDispatch() {}
}